﻿using AutoMapper;
using Darius.API.Application.Commands;
using IMES.Common.Domain.DariusModel;
using IMES.Common.Domain.KeepModel;

namespace Darius.API.Application.Automapper
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<RoleCreateCommand, Roles>().ReverseMap();
            CreateMap<PermissionsCreateCommand, Permission>().ReverseMap();
            CreateMap<RolePermissionCreateCommand, RolesPermission>().ReverseMap();
        }
    }
}
